home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.teleport.com!usenet
- From: GHouck <hksys@teleport.com>
- Newsgroups: comp.unix.programmer,comp.lang.c,comp.unix.internals
- Subject: Re: C compiler Error on EXEC SQL
- Date: 13 Apr 1996 07:02:42 GMT
- Organization: systems hk
- Message-ID: <4knjii$i9s@nadine.teleport.com>
- References: <4kkej2$3ta@news.cc.utah.edu>
- NNTP-Posting-Host: ip-pdx14-40.teleport.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
-
- dpncc@utah.state.ut.us (NCC Network) wrote:
- >
- >Hi
- >
- >I post this for my friend who has no access to the internet and would like to
- >get help from C experts in the Net. She has a C program left over from a guy
- >left the company. The C source code is included below as well as the compiler
- >error generated by HP UNIX. What is the EXEC SQL instruction ? It doesn't seem
- >to be a standard C.
- >
- [snip]
- >
- >(Bundled) cc: line 4: error 1000: Unexpected symbol: "SQL".
- >(Bundled) cc: line 4: error 1000: Unexpected symbol: ";".
- >(Bundled) cc: line 12: error 1000: Unexpected symbol: "SQL".
- >(Bundled) cc: line 12: error 1000: Unexpected symbol: "DECLARE".
- >(Bundled) cc: line 24: error 1000: Unexpected symbol: "SQL".
- >(Bundled) cc: line 24: error 1000: Unexpected symbol: "DECLARE".
- >(Bundled) cc: line 50: error 1000: Unexpected symbol: "SQL".
- >(Bundled) cc: line 50: error 1000: Unexpected symbol: "'revenue'".
- >...............................
- [snip]
- Dennis,
-
- Officially known as 'embedded SQL' source. If Oracle database, then it can
- be called PRO*C, if INGRES: ESQL, etc. As indicated by others, preprocess
- with the database vendors pre-processor, then compile with a C compiler
- that the vendor supports (I would assume your system has the correct
- one resident, if it used to work). There was likely left behind
- command procedures or batch files to invoke the pre-process, compile,
- link sequence.
- Good luck,
- Geoff Houck
-
-
-